<?php

/**
 * main template
 * may one day contain a header and footer or something.
 *
 * for now:
 *  - create the header element and display the window title
 *  - include common js and css
 *
 * REQUIRED PARAMS
 * @param contentViewPath
 *
 * OPTIONAL PARAMS
 * @param pageTitle (optional, default="Website")
 * @param jsClassName (optional, js class for page init)
 */

if ( ! isset($pageTitle)) {
	$pageTitle = 'Website';
}

?><!DOCTYPE html>
<html>
	<head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		
		<title><?php echo $pageTitle; ?></title>
		
		<?php
		
		$this->load->view('shared/shared_css_view');
		
		$this->load->view('shared/shared_js_view');
		
		?>
		
	</head>
	<body<?php
	
	if (isset($jsClassName)) {
		echo ' data-js-class="'.$jsClassName.'"';
	}
	
	?>>
		<?php 
		
		$this->load->view('shared/header_bar_subview');
		
		$this->load->view($contentViewPath);
		
		$this->load->view('shared/footer_subview');
		
		?>
	</body>
</html>